from twisted.application import service, internet

import sys,os
sys.path = [os.path.join(os.getcwd(), 'conf'), os.path.join(os.getcwd(), '.'), os.path.join(os.getcwd(), 'externals', 'stratum-mining-proxy'),] + sys.path
from echo import EchoFactory


application = service.Application("echo-server")
echoService = internet.TCPServer(8000, EchoFactory)
echoService.setServiceParent(application)